Methods and systems for combining foreground video and background video using chromatic matching

ABSTRACT

Disclosed herein are methods and systems for combining foreground video and background video using chromatic matching. In an embodiment, a system obtains foreground video data. The system obtains background video data. The system determines a color-distribution dimensionality of the background video data to be either high-dimensional chromatic or low-dimensional chromatic. The system selects a chromatic-adjustment technique from a set of chromatic-adjustment techniques based on the determined color-distribution dimensionality of the background video data. The system adjusts the foreground video data using the selected chromatic-adjustment technique. The system generates combined video data at least in part by combining the background video data with the adjusted foreground video data. The system outputs the combined video for display.

BACKGROUND

The combination of multiple images, e.g., a foreground image and a background image, into composite images is an important task in various different commercial industries and other contexts. If two images, which could be partial or complete frames of video data, are combined inartfully, the result may be a visually unpleasant and artificial-looking composition.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 depicts an example method, in accordance with some embodiments.

FIG. 2 depicts an architectural view of an example computing device, in accordance with some embodiments.

FIG. 3 depicts an example graphical representation of example chromatically high-dimensional background video data in the {L,a,b} color space, in accordance with some embodiments.

FIG. 4 depicts an example graphical representation of an example subset of the example chromatically high-dimensional background video data of FIG. 3, in accordance with some embodiments.

FIG. 5 depicts an example graphical representation of example chromatically low-dimensional background video data in the {L,a,b} color space, in accordance with some embodiments.

FIG. 6 depicts an example graphical representation of an example subset of the example chromatically low-dimensional background video data of FIG. 5, in accordance with some embodiments.

FIG. 7 depicts an example idealization of the example subset of FIG. 6, in accordance with some embodiments.

FIG. 8 depicts an example idealization of the example chromatically low-dimensional background video data of FIG. 5 that incorporates the example idealization of FIG. 7, in accordance with some embodiments.

FIG. 9 depicts an example L-to-{a,b} look-up table that corresponds to the example idealization of FIG. 8, in accordance with some embodiments.

FIG. 10 depicts an example table representation of example foreground video data in the {R,G,B} color space, in accordance with some embodiments.

FIG. 11 depicts an example table representation of the example foreground video data of FIG. 10 after having been converted to the {L,a,b} color space, in accordance with some embodiments.

FIG. 12 depicts an example graphical representation of the example converted foreground video data of FIG. 11 in the {L,a,b} color space, in accordance with some embodiments.

FIG. 13 depicts an example graphical representation that shows both the example chromatically low-dimensional background video data of FIG. 5 and the example converted foreground video data of FIG. 12, both in the {L,a,b} color space, in accordance with some embodiments.

FIG. 14 depicts an example table representation of the example converted foreground video data of FIGS. 11-12 after having been transformed in the {L,a,b} color space using a chromatic-replacement technique, in accordance with some embodiments.

FIG. 15 depicts an example graphical representation of the transformed foreground video data of FIG. 14 in the {L,a,b} color space, in accordance with some embodiments.

FIG. 16 depicts an example graphical representation that shows both the example chromatically low-dimensional background video data of FIG. 5 and the example transformed foreground video data of FIG. 15, both in the {L,a,b} color space, in accordance with some embodiments.

FIG. 17 depicts an example table representation of the example transformed foreground video data of FIGS. 14-15 after having been converted to the {R,G,B} color space, in accordance with some embodiments.

DETAILED DESCRIPTION

One embodiment takes the form of a method that includes (i) obtaining foreground video data; (ii) obtaining background video data; (iii) determining a color-distribution dimensionality of the background video data to be either high-dimensional chromatic or low-dimensional chromatic; (iv) selecting a chromatic-adjustment technique from a set of chromatic-adjustment techniques based on the determined color-distribution dimensionality of the background video data; (v) adjusting the foreground video data using the selected chromatic-adjustment technique; (vi) generating combined video data at least in part by combining the background video data with the adjusted foreground video data; and (vii) outputting the combined video data for display.

Another embodiment takes the form of a system that includes a communication interface, a processor, and a non-transitory computer-readable medium storing instructions executable by the processor for causing the system to perform at least the functions listed in the preceding paragraph.

Moreover, any of the variations and permutations described herein can be implemented with respect to any embodiments, including with respect to any method embodiments and with respect to any system embodiments. Furthermore, this flexibility and cross-applicability of embodiments is present in spite of the use of slightly different language (e.g., process, method, steps, functions, set of functions, and the like) to describe and or characterize such embodiments.

In at least one embodiment, determining the color-distribution dimensionality of the background video data to be either high-dimensional chromatic or low-dimensional chromatic includes (i) converting pixels of the background video data from an {R,G,B} color space to an {L,a,b} color space; (ii) calculating an {a,b} variance of the converted background pixels; (iii) comparing the calculated {a,b} variance to an {a,b}-variance threshold; (iv) determining the color-distribution dimensionality of the background video data to be high-dimensional chromatic if the calculated {a,b} variance exceeds the {a,b}-variance threshold; and (v) determining the color-distribution dimensionality of the background video data to be low-dimensional chromatic if the calculated {a,b} variance does not exceed the {a,b}-variance threshold.

In at least one embodiment, calculating the {a,b} variance of the converted background pixels includes determining how many luminance levels in the converted background pixels have more than a luminance-level-specific degree of {a,b} variance. In at least one such embodiment, the {a,b}-variance threshold is a threshold number of luminance levels; in at least one such embodiment, the threshold number of luminance levels is zero; in at least one other such embodiment, the threshold number of luminance levels is greater than zero.

In at least one embodiment, calculating the {a,b} variance of the converted background pixels includes (i) determining a respective luminance-level-specific {a,b} variance for each of a plurality of luminance levels that are represented in the converted background pixels and (ii) calculating the {a,b} variance of the converted background pixels to be a sum of the determined luminance-level-specific {a,b} variances.

In at least one embodiment, calculating the {a,b} variance of the converted background pixels includes (i) determining a respective luminance-level-specific {a,b} variance for each luminance level represented in the converted background pixels and (ii) calculating the {a,b} variance of the converted background pixels to be a sum of the determined luminance-level-specific {a,b} variances.

In at least one embodiment, determining the color-distribution dimensionality of the background video data to be either high-dimensional chromatic or low-dimensional chromatic includes (i) determining the color-distribution dimensionality of the background video data to be low-dimensional chromatic if a background-color distribution of the background video data in an {L,a,b} color space is supported by a relationship defined by: {(L,a,b)|a=f _(a)(L),b=f _(b)(L)}  (Eq. 1) where f_(a) and f_(b) are functions and (ii) otherwise determining the color-distribution dimensionality of the background video data to be high-dimensional chromatic.

In at least one embodiment: (i) the set of chromatic-adjustment techniques includes a white-balancing technique and a chromatic-replacement technique and (ii) selecting a chromatic-adjustment technique based on the determined color-distribution dimensionality includes (a) selecting the white-balancing technique when the color-distribution dimensionality of the background video data is determined to be high-dimensional chromatic and (b) selecting the chromatic-replacement technique when the color-distribution dimensionality of the background video data is determined to be low-dimensional chromatic.

In at least one embodiment, adjusting the foreground video data using the white-balancing technique includes (i) determining a foreground average of pixels of the foreground video data in an {R,G,B} color space; (ii) determining a background average of pixels of the background video data in the {R,G,B} color space; (iii) converting the foreground average and the background average from the {R,G,B} color space to a second color space; (iv) determining a transform matrix in the second color space from the converted foreground average to the converted background average; (v) converting the pixels of the foreground video data from the {R,G,B} color space to the second color space; (vi) transforming the converted foreground pixels in the second color space using the determined transform matrix; and (vii) converting the transformed foreground pixels from the second color space to the {R,G,B} color space.

In at least one embodiment, the determined transform matrix includes dimension-wise ratios in the second color space of the converted background average to the converted foreground average. In at least one embodiment, the second color space is an {L,a,b} color space. In at least one embodiment, the second color space is an {X,Y,Z} color space. In at least one such embodiment, converting the foreground pixels from the {R,G,B} color space to the second color space includes converting the foreground pixels from the {R,G,B} color space to an {L,a,b} color space and then from the {L,a,b} color space to the {X,Y,Z} color space.

In at least one embodiment, the method also includes converting pixels of the background video data from an {R,G,B} color space to an {L,a,b} color space, and adjusting the foreground video data using the chromatic-replacement technique includes: (i) generating an L-to-{a,b} lookup table based on the converted background pixels; (ii) converting pixels of the foreground video data from the {R,G,B} color space to the {L,a,b} color space; (iii) transforming the converted foreground pixels at least in part by (a) using the respective L values of the respective converted foreground pixels to select respective replacement {a,b} values for the respective converted foreground pixels based on the L-to-{a,b} lookup table and (b) replacing the respective {a,b} values of the respective converted foreground pixels with the corresponding respective selected replacement {a,b} values; and (iv) converting the transformed foreground pixels from the {L,a,b} color space to the {R,G,B} color space.

In at least one embodiment, using the respective L values of the respective converted foreground pixels to select the respective replacement {a,b} values for the respective converted foreground pixels based on the L-to-{a,b} lookup table includes retrieving the respective replacement {a,b} values from the L-to-{a,b} lookup table in cases where the respective L value of the respective converted foreground pixel is listed in the L-to-{a,b} lookup table.

In at least one embodiment, using the respective L values of the respective converted foreground pixels to select the respective replacement {a,b} values for the respective converted foreground pixels based on the L-to-{a,b} lookup table further includes using interpolated {a,b} values based on one or more entries in the L-to-{a,b} lookup table as the respective replacement {a,b} values in cases where the respective L value of the respective converted foreground pixel is not listed in the L-to-{a,b} lookup table. In at least one such embodiment, the interpolated {a,b} values are copied from a nearest L value that is listed in the L-to-{a,b} lookup table; in at least one other such embodiment, the interpolated {a,b} values are average {a,b} values of two or more proximate entries in the L-to-{a,b} lookup table.

In at least one embodiment, the method also includes (i) obtaining second foreground video data and (ii) adjusting the second foreground video data using the selected chromatic-adjustment technique, and generating the combined video data includes combining the background video data with both the adjusted foreground video data and the adjusted second foreground video data.

Before proceeding with this detailed description, it is noted that the entities, connections, arrangements, and the like that are depicted in—and described in connection with—the various figures are presented by way of example and not by way of limitation. As such, any and all statements or other indications as to what a particular figure “depicts,” what a particular element or entity in a particular figure “is” or “has,” and any and all similar statements—that may in isolation and out of context be read as absolute and therefore limiting—can only properly be read as being constructively preceded by a clause such as “In at least one embodiment, . . . .” And it is for reasons akin to brevity and clarity of presentation that this implied leading clause is not repeated ad nauseam in this detailed description.

FIG. 1 depicts an example method, in accordance with some embodiments.

In particular, FIG. 1 depicts a method 100 that is described below by way of example as being carried out by the example computing device (or system) 200 that is described in connection with FIG. 2. In general, the method 100 could be carried out by any computing device that is suitably equipped, programmed, and configured. The method 100 includes steps 102-114, which are described briefly in connection with FIG. 1 and more fully in connection with the ensuing figures.

At step 102, the computing device 200 obtains foreground video data. At step 104, the computing device 200 obtains background video data. At step 106, the computing device determines a color-distribution dimensionality of the background video data to be either high-dimensional chromatic or low-dimensional chromatic. At step 108, the computing device 200 selects a chromatic-adjustment technique from a set of chromatic-adjustment techniques based on the determined color-distribution dimensionality of the background video data. At step 110, the computing device 200 adjusts the foreground video data using the selected chromatic-adjustment technique. At step 112, the computing device 200 generates combined video data at least in part by combining the background video data with the adjusted foreground video data. At step 114, the computing device 200 outputs the combined video data for display.

FIG. 2 depicts an architectural view of an example computing device, in accordance with some embodiments. The example computing device 200 may be configured to carry out the functions described herein, and as depicted includes a communications interface 202, a processor 204, data storage 206 (that contains program instructions 208 and operational data 210), a user interface 212 (that contains a display 220), peripherals 214 (that contains a camera 216), and a communication bus 218. This arrangement is presented by way of example and not limitation, as other example arrangements could be described here.

The communication interface 202 may be configured to be operable for communication according to one or more wireless-communication protocols, some examples of which include Long-Term Evolution (LTE), IEEE 802.11 (Wi-Fi), Bluetooth, and the like. The communication interface 202 may also or instead be configured to be operable for communication according to one or more wired-communication protocols, some examples of which include Ethernet and USB.) The communication interface 202 may include any necessary hardware (e.g., chipsets, antennas, Ethernet interfaces, etc.), any necessary firmware, and any necessary software for conducting one or more forms of communication with one or more other entities as described herein.

The processor 204 may include one or more processors of any type deemed suitable by those of skill in the relevant art, some examples including a general-purpose microprocessor and a dedicated digital signal processor (DSP).

The data storage 206 may take the form of any non-transitory computer-readable medium or combination of such media, some examples including flash memory, read-only memory (ROM), and random-access memory (RAM) to name but a few, as any one or more types of non-transitory data-storage technology deemed suitable by those of skill in the relevant art could be used. As depicted in FIG. 2, the data storage 206 contains program instructions 208 executable by the processor 204 for carrying out various functions described herein, and further is depicted as containing operational data 210, which may include any one or more data values stored by and/or accessed by the computing device 200 in carrying out one or more of the functions described herein.

The user interface 212 may include one or more input devices (a.k.a. components and the like) and/or one or more output devices (a.k.a. components and the like.) With respect to input devices, the user interface 212 may include one or more touchscreens, buttons, switches, microphones, and the like. With respect to output devices, the user interface 212 may include one or more speakers, light emitting diodes (LEDs), and the like. In some embodiments, including the one depicted by way of example in FIG. 2, the user interface 212 includes a display 220. Moreover, one or more components (e.g., the display 220 could be an interactive touchscreen and display) of the user interface 212 could provide both user-input and user-output functionality. In some cases, such as in the case of the computing device 200 being a networked server, all or part of the user interface 212 may be virtually provided by the computing device 200 over a network connection; in other embodiments, the computing device 200 provides some or all of the user interface 212 via one or more connected devices such as keyboards, mice, touchpads, monitors, and/or the like. And certainly other configurations could be described here as well.

The peripherals 214 may include any computing device accessory, component, or the like, that is accessible to and useable by the computing device 200 during operation. In some embodiments, including the one depicted by way of example in FIG. 2, the peripherals 214 includes a camera 216 for, perhaps among other functions, capturing video data. The camera 216 could be an optical camera, and may also have depth-camera functionality. The camera 216 could be arranged to captured still images in addition to video. And certainly other example peripherals could be listed.

Returning to FIG. 1, at step 102, the computing device 200 obtains foreground video data. This step may be performed in several different ways. In at least one embodiment, the computing system 200 obtains foreground video data by capturing the foreground video data using the camera 216. In at least one embodiment, the computing device 200 obtains foreground video data by receiving the foreground video data via a network connection using the communication interface 202. And certainly other examples of ways in which the computing system 200 could obtain foreground video data at step 102 could be listed here.

At step 104, the computing device 200 obtains background video data, which the computing device 200 may do in any of the ways described above in connection with the computing device 200 obtaining the foreground video at step 102, or in any other manner deemed suitable in a given context by one of skill in the art.

Thus, in an example scenario, a user is using the computing device 200, which in this example is a laptop computer. The computing device 200 carries out step 102 by capturing video of the user, and then extracts from that captured video a persona of the user. In this example, then, the “foreground video” is the extracted persona. For an example procedure for persona extraction from a video feed, see U.S. Pat. No. 8,818,028, which issued Aug. 26, 2014 and is entitled “Systems and Methods for Accurate User Foreground Video Extraction,” the entire contents of which are hereby incorporated herein by reference.

Further to this example scenario, the computing device 200 carries out step 104 by receiving a video feed via a network connection. In this example, then, the “background video” is that received video feed, which could be a slide-based presentation, as one example. Further to this example scenario, at the time they are obtained by the computing device 200, both the foreground video and the background video are in the form of frames of pixels; furthermore, at the time these frames are obtained, those pixels are expressed in what is known as the {R,G,B} color space.

As is known in the art, a pixel is an independently changeable and addressable display-data element that has properties such as color and location (e.g., Cartesian coordinates in a rectangular image). Generally speaking, higher-resolution images include greater number of pixels, and thus the potential for a higher amount of detail, then do lower-resolution images. As is further known in the art, pixels can contain color information in any of a variety of different color spaces. Some examples that are discussed herein include the {R,G,B} color space, the {L,a,b} color space, and the {X,Y,Z} color space, though certainly many others could be listed here and discussed herein, as those three are listed here and discussed herein by way of example. These three example color spaces are briefly discussed below though, as stated, they are known to those of skill in the art, as are the manners of converting pixels from being expressed in one of those color spaces to being expressed in another.

The {R,G,B} color space expresses the color of a given pixel using a red (R) value, a green (G) value, and a blue (B) value, each of which can range from 0-255. Moreover, a related color space is the {R,G,B,A} color space, which adds a fourth value, the alpha (A) value, which can also range from 0-255 and is a measure of the transparency (and equivalently then the opacity) at which the given pixel should be displayed. The {R,G,B} color space, then, does not express color in a way that requires a separate brightness value. Instead, the resulting color of the pixel is the result of some amount of red-color intensity, some amount of green-color intensity, and some amount of blue-color intensity, where one or more of those amounts could be zero.

The {L,a,b} color space expresses the color of a given pixel using one value (L) to represent luminance (i.e., brightness) and the other two values (a and b) to represent color. Typically, for a given pixel, ‘L’ can range between values of 0 and 100, while each of ‘a’ and ‘b’ can range between −128 and +128. Thus, the combination of the ‘a’ value and the ‘b’ value identify a particular color, and the ‘L’ value indicates the luminance level at which that particular color should be displayed. More particularly, the combination of the ‘a’ value and the ‘b’ value specify what is known as the chromaticity of the pixel, where chromaticity is an objective specification of the quality of a color independent of luminance, and where the combination of the chromaticity of a pixel and the luminance of the pixel specify the visible color of that pixel. For simplicity of explanation, this disclosure considers (i) the ‘L’ value of a given pixel in the {L,a,b} color space to represent the luminance level of that pixel and (ii) the {a,b} values of a given pixel in the {L,a,b} color space to represent the color of that pixel.

The {X,Y,Z} color space is known as a tristimulus color space, and is based on the fact that the human eye has three types of cone cells, which are the types of cells that are responsible for color vision in medium-brightness and high-brightness situations. Each type of cone cell is essentially a filter having its peak sensitivity at a different respective wavelength of light. The {X,Y,Z} color space is similar to the {L,a,b} color space in at least one respect: one of the three values (Y) is used to represent luminance and the other two values (X and Z) in combination are used to specify chromaticity (and therefore color, given a level of luminance). For simplicity of explanation, this disclosure considers (i) the ‘Y’ value of a given pixel in the {X,Y,Z} color space to represent the luminance level of that pixel and (ii) the {X,Z} values of a given pixel in the {X,Y,Z} color space to represent the color of that pixel.

Moreover, in general, as the term is used herein, the “color-distribution dimensionality” of a given set of image data, video data, pixels, and/or the like is an expression of how varied (or not varied) the color values are across the particular data set. Moreover, a given data set that is determined to have a color-distribution dimensionality that is “high-dimensional chromatic” as that term is used herein is one that has been determined to have a relatively widely varying collection of color values across that given data set (i.e., a relatively wide variety of different colors); conversely, a given data set that is determined to have a color-distribution dimensionality that is “low-dimensional chromatic” as that term is used herein is one that has been determined to have only a relatively narrowly varying collection of color values across that given data set (i.e., a relatively narrow concentration of only a relatively small number of different colors).

FIG. 3 depicts an example graphical representation of example chromatically high-dimensional background video data in the {L,a,b} color space, in accordance with some embodiments. In particular, FIG. 3 depicts a graph 300 having an ‘L’ axis 302, an ‘a’ axis 304, and a ‘b’ axis 306 that all intersect at an origin point 308 that corresponds to the point ({L,a,b}|{0,0,0}). As depicted in FIG. 3, the ‘a’ axis 304 and the ‘b’ axis 306 together define a plane 301 at which L=0. The graph 300 also includes a point 318 on the ‘L’ axis at which L=50 (i.e., the point ({L,a,b}|{50,0,0})). Passing through the point 318 are (i) a supplemental ‘a’ axis 314 that is parallel to the ‘a’ axis 304 and (ii) a supplemental ‘b’ axis 316 that is parallel to the ‘b’ axis 306. Together, the supplemental ‘a’ axis 314 and the supplemental ‘b’ axis 316 define a plane 310 that is parallel to the plane 301. On the plane 310, L=50.

The graph 300 also includes a scattering of pixels (solid black dots) that are collectively representative of the pixels in an example background video (e.g., a frame of background video) that is deemed in this disclosure to be high-dimensional chromatic. As can be seen in FIG. 3, the various pixels in the graph 300 are scattered widely with respect to the a-b plane. Moreover, the pixels that are numbered 320-326 are located in the plane 310; i.e., each of the pixels 320-326 has an ‘L’ value equal to 50. As is explained more fully below in connection with FIG. 4, the dashed circle 312 around the pixels 320 is an example graphical representation of the overall degree of variance of the pixels in the plane 310.

It is further noted that the number of pixels that is depicted in FIG. 3 and each of the other figures that graphically display pixels is by way of example only; in actual implementations, any number of pixels could be present in any one of the figures. Furthermore, as explained below, some of the figures have corresponding elements; for example, the circle 312 and the pixels 320 are shown in both FIG. 3 and FIG. 4; in such instances, these elements are meant to correspond to one another, but minor differences such as different numbers of pixels 320 being displayed in the circle 312 in FIG. 3 vs. FIG. 4 should not be interpreted as mistakes; these figures are meant to be explanatory and helpful in nature, and are used herein to illustrate various aspects of this disclosure. Moreover, the selection of L=50 as an illustrative and explanatory ‘L’ value is purely by way of example and not limitation, as any one or more other ‘L’ values could have used instead or in addition for purposes of illustration and exposition.

FIG. 4 depicts an example graphical representation of an example subset of the example chromatically high-dimensional background video data of FIG. 3, in accordance with some embodiments. Essentially, FIG. 4 depicts a graph 400 that is a subset of the graph 300 of FIG. 3 from a different perspective. The graph 400, then, depicts all of the points from the graph 300 for which L=50. The elements that are common to both graphs are the plane 310, the circle 312, the supplemental ‘a’ axis 314, the supplemental ‘b’ axis 316, the point 318, the pixels 320 inside the circle 312, and the outlier pixels 322-326. The circle 312 is meant to be a graphical illustration of the degree of variance in the a-b plane (i.e., the “{a,b} variance”) of the pixels from the graph 300 at the luminance level L=50. If conceptualized as a minimum bounding circle (around all pixels or around all pixels except for a few outliers), then various different dimensions of the circle 312 could be used as proxies for the degree of {a,b} variance in the plane 310. Some such dimensions of the circle 312 that could be used as an {a,b}-variance proxy include circumference, area, radius, and diameter.

FIG. 5 depicts an example graphical representation of example chromatically low-dimensional background video data in the {L,a,b} color space, in accordance with some embodiments. In particular, FIG. 5 depicts a graph 500 that is somewhat similar to the graph 300 of FIG. 3 other than that the pixels in the graph 500 are meant to illustrate those of an example background video (e.g., a frame of background video) that is deemed in this disclosure to be low-dimensional chromatic (as opposed to high-dimensional chromatic in FIGS. 3-4). As depicted in FIG. 5, the graph 500 includes an ‘L’ axis 502, an ‘a’ axis 504, and a ‘b’ axis 506 that all intersect at an origin point 508 that corresponds to the point ({L,a,b}|{0,0,0}). As depicted in FIG. 5, the ‘a’ axis 504 and the ‘b’ axis 506 together define a plane 501 at which L=0. The graph 500 also includes a point 518 on the ‘L’ axis at which L=50 (i.e., the point ({L,a,b}|{50,0,0})). Passing through the point 518 are (i) a supplemental ‘a’ axis 514 that is parallel to the ‘a’ axis 504 and (ii) a supplemental ‘b’ axis 516 that is parallel to the ‘b’ axis 506. Together, the supplemental ‘a’ axis 514 and the supplemental ‘b’ axis 516 define a plane 510 that is parallel to the plane 501. On the plane 510, L=50.

As alluded to above, the graph 500 also includes a (generally narrower) scattering of pixels that are collectively representative of the pixels in an example background video (e.g., a frame of background video) that is deemed in this disclosure to be low-dimensional chromatic (unlike the high-dimensional chromatic nature that is depicted in FIGS. 3-4). As can be seen in FIG. 5, the various pixels in the graph 500 are not scattered particularly widely with respect to the a-b plane. Moreover, the pixels that are numbered 520-524 are located in the plane 510; i.e., each of the pixels 520-524 has an ‘L’ value equal to 50. As is explained more fully below in connection with FIG. 5, the dashed circle 512 around the pixels 520 is an example graphical representation of the overall degree of variance of the pixels in the plane 510.

FIG. 6 depicts an example graphical representation of an example subset of the example chromatically low-dimensional background video data of FIG. 5, in accordance with some embodiments. On a general level, the graph 600 of FIG. 6 is to the graph 500 of FIG. 5 as the graph 400 of FIG. 4 is to the graph 300 of FIG. 3. Thus, essentially, FIG. 6 depicts a graph 600 that is a subset of the graph 500 of FIG. 5 from a different perspective. The graph 600, then, depicts all of the points from the graph 500 for which L=50. The elements that are common to both graphs are the plane 510, the circle 512, the supplemental ‘a’ axis 514, the supplemental ‘b’ axis 516, the point 518, the pixels 520 inside the circle 512, and the outlier pixels 522-524. The circle 512 is meant to be a graphical illustration of the “{a,b} variance” of the pixels from the graph 500 at the luminance level L=50. If conceptualized as a minimum bounding circle (around all pixels or around all pixels except for a few outliers), then, similar to the circle 312, various different dimensions (e.g., circumference, area, radius, diameter) of the circle 512 could be used as proxies for the degree of {a,b} variance in the plane 510.

At step 106, the computing device 200 determines the color-distribution dimensionality of the background video data to be either high-dimensional chromatic or low-dimensional chromatic. As described above, FIGS. 3-4 pertain to an example set of pixels that is considered high-dimensional chromatic in the terms of this disclosure, while FIGS. 5-6 pertain to an example set of pixels that is considered to be low-dimensional chromatic in the terms of this disclosure.

In at least one embodiment, the computing device 200 carries out step 106 at least in part by carrying out a series of sub-steps. First, the computing device 200 converts the obtained background video data, which in this example is a single frame of background-video data (though in other examples the background-video data could be from or based on multiple frames of background-video data), from the {R,G,B} color space to the {L,a,b} color space. Second, the computing device 200 calculates the {a,b} variance of the converted background pixels. Third, the computing device 200 compares the calculated {a,b} variance to an {a,b}-variance threshold. Fourth and last, the computing device 200 determines the color-distribution dimensionality of the background video data to be (i) high-dimensional chromatic if the calculated {a,b} variance exceeds the {a,b}-variance threshold or (ii) low-dimensional chromatic if the calculated {a,b} variance does not exceed the {a,b}-variance threshold. Various example ways in which these sub-steps could be carried out are described below.

The computing device 200 could calculate the {a,b} variance of the converted background pixels in a number of different ways. In general, as stated above, as used herein, the {a,b} variance of a set of pixels—in this case the converted background pixels—is essentially an expression of how spread out or concentrated the pixels in that set are with respect to the ‘a’ and ‘b’ dimensions.

In some embodiments, the computing device 200 determines an {a,b} variance at each of a plurality of different ‘L’ values (perhaps all ‘L’ values that are represented in the converted background pixels), and on a luminance-level-by-luminance-level basis decides whether the {a,b} variance at each such luminance level exceeds a single-luminance-level threshold or degree of {a,b} variance. The computing device 200 may then count up how many levels have an {a,b} variance that exceeds that single-luminance-level threshold, and then compare that count to a threshold number of levels. In such embodiments, the {a,b}-variance threshold would take the form of a certain threshold number of levels. That number could be zero or greater than zero in various different embodiments; that number could also be expressed as a fraction or percentage of the total number of luminance levels that are represented in the converted background pixels, the total number of possible luminance levels, or some other possibility.

In some embodiments, the computing device 200 similarly determines an {a,b} variance at each of a plurality of different ‘L’ values (perhaps all ‘L’ values that are represented in the converted background pixels), sums those luminance-level-specific {a,b}-variance values, and then compares that sum with an {a,b}-variance threshold, which in such embodiments would take the form of a threshold aggregate amount of {a,b} variance as opposed to a number of luminance levels as described in the previous example. And certainly numerous other manners of calculating an aggregate {a,b} variance of the converted background pixels and comparing the result of that calculation to one or more threshold values could be listed here. And in this context and in others, the use of the {L,a,b} color space is by way of example and not limitation. The {X,Y,Z} color space or any other suitable color space could be used.

With respect to the calculation of the {a,b} variance at any given luminance level, this could involve a rigorous mathematical calculation of variance (i.e., the expected value of the squared deviation from the mean in both the ‘a’ and ‘b’ axes), and could instead or in addition involve a more “rough” calculation or proxy for the {a,b} variance such as the area, circumference, radius, or diameter of a minimum-bounding circle with respect to the pixels (perhaps excluding one or more outliers) at that luminance level. And certainly the dimensions and/or area or the like of shapes other than a minimum-bounding circle could be used as well or instead.

In at least one embodiment, step 106 can be characterized as (i) determining the color-distribution dimensionality of the background video data to be low-dimensional chromatic if the background-color distribution of the background video data in the {L,a,b} color space can be expressed as: {(L,a,b)|a=f _(a)(L),b=f _(b)(L)}, where f_(a) and f_(b) are functions and (ii) otherwise determining the color-distribution dimensionality of the background video data to be high-dimensional chromatic. This is essentially saying that, if knowing the ‘L’ value of a given pixel is sufficient to identify both the ‘a’ value and the ‘b’ value for that pixel (or at least approximate the ‘a’ and ‘b’ values closely enough because the pixels are relatively concentrated in the a-b plane for all or a sufficient number of ‘L’ values), then the background video data can be characterized as being low-dimensional chromatic; and if not, the background video data can be characterized as being high-dimensional chromatic.

Returning to FIG. 1, at step 108, the computing device 200 selects a chromatic-adjustment technique from a set of chromatic-adjustment techniques based on the determined color-distribution dimensionality of the background video data. At step 110, the computing device 200 adjusts the foreground video data using the selected chromatic-adjustment technique. The following paragraphs describe a number of different ways that the computing device 200 may carry out steps 108 and 110.

In at least one embodiment, the set of chromatic-adjustment techniques includes what is referred to herein as a white-balancing technique. In at least one embodiment, the computing device 200 selects the white-balancing technique when the color-distribution dimensionality of the background video data is determined to be high-dimensional chromatic. In at least one embodiment, the set of chromatic-adjustment techniques includes what is referred to herein as a chromatic-replacement technique. In at least one embodiment, the computing device 200 selects the chromatic-replacement technique when the color-distribution dimensionality of the background video data is determined to be low-dimensional chromatic.

This and the next few paragraphs provide an example as to how the computing device 200 could carry out the white-balancing technique in cases where that is the selected chromatic-adjustment technique. In at least one embodiment, the computing device 200 adjusts the foreground video data using the white-balancing technique at least in part by carrying out a number of sub-steps. First, the computing device 200 determines an average of the pixels of the foreground video data and an average of the pixels in the background video data. In an embodiment, the computing device 200 determines both the foreground average pixel and the background average pixel in the {R,G,B} color space. Next, the computing device 200 converts both the foreground average pixel and the background average pixel from the {R,G,B} color space to a second color space, which could be {L,a,b}, {X,Y,Z}, or some other color space. {L,a,b} is used by way of example in this part of the disclosure.

Next, the computing device 200 determines a transform matrix in {L,a,b} from the converted foreground average pixel to the converted background average pixel. In an embodiment, this transform matrix includes three separate dimension-wise ratios: the ratio of the background-average-pixel ‘L’ value to the foreground-average-pixel ‘L’ value, the ratio of the background-average-pixel ‘a’ value to the foreground-average-pixel ‘a’ value, and the ratio of the background-average-pixel ‘b’ value to the foreground-average-pixel ‘b’ value. And certainly other forms of transform matrices could be used.

The computing device 200 also converts all or substantially all of the pixels of the obtained foreground video data to the second color space, which again is {L,a,b} in this example, and transforms the converted foreground pixels in the second color space using the determined transform matrix. In the case of the transform matrix including the three ratios described in the preceding paragraph, the computing device 200 would transform the converted foreground pixels at least in part by, for each foreground pixel, multiplying the foreground pixel's ‘L’ value by the average-background-L-to-average-foreground-L ratio, (ii) multiplying the foreground pixel's ‘a’ value by the average-background-a-to-average-foreground-a ratio, and (iii) multiplying the foreground pixel's ‘b’ value by the average-background-b-to-average-foreground-b ratio. The computing device 200 may then convert the now-transformed foreground pixels back to the {R,G,B} color space.

This and the next few paragraphs provide an example as to how the computing device 200 could carry out the chromatic-replacement technique in cases where that is the selected chromatic-adjustment technique. In at least one embodiment, the computing device 200 carries out the step of converting all or substantially all of the pixels of the obtained background video data from the {R,G,B} color space to the {L,a,b} color space. It is noted, however, that this conversion step is not necessarily part of carrying out the chromatic-replacement technique, since the computing device 200 may have already converted the background pixels from {R,G,B} to {L,a,b} in order to make the determination as to whether the color-distribution dimensionality of the background video data is high-dimensional chromatic or low-dimensional chromatic. If, however, the computing device 200 had not previously converted the background pixels to {L,a,b}, the computing device 200 may do so as part of—or as a necessary precursor to—carrying out the chromatic-replacement technique. In any event, the chromatic-replacement technique is described below in a manner that presumes that the background pixels have already been converted to {L,a,b}.

As to carrying out the chromatic-replacement technique, the computing device 200 may do so at least in part by carrying out a number of sub-steps. One such sub-step involves generating an L-to-{a,b} lookup table based on the converted background pixels. An example way of doing this is now described in connection with FIGS. 5-9. As described above, FIG. 5 shows an example low-dimensional-chromatic set of pixels. In the balance of this disclosure, FIGS. 5-7 are considered to represent the set of background pixels after having been converted to {L,a,b} as described above. The specific example described herein is with respect to an ‘L’ value of 50, which as described above is selected purely by way of example.

In FIG. 5 and FIG. 6, as described above, the {a,b} variance of the pixels 520-524 in the L=50 plane 510 is represented by the size of the bounding circle 512 that surrounds the background pixels 520 in the plane 510. It is noted that this {a,b} variance could be calculated using such a circle or in any other suitable way as described above, and that the size of the circle 512 is a representation of the extent of the {a,b} variance that is present at L=50 in the background pixel set of FIG. 5. As part of generating an L-to-{a,b} lookup table based on the converted background pixels, the computing device 200 may determine a characteristic {a,b} value for L=50 in the background pixel set. One way to phrase the determination of a characteristic {a,b} value for L=50 (or any other particular ‘L’ value) in the background pixel set is idealizing or generating an idealization of the background pixels for which L=50.

FIG. 7 depicts an example idealization of the example subset of FIG. 6, in accordance with some embodiments. The graph 700 of FIG. 7 includes a number of elements of the graph 600 of FIG. 6. Among the salient differences are that the outlier points 522-524 have been removed, and the pixels 520 inside the bounding circle 512 have been reduced to a single characteristic pixel 702 having a particular ‘a’ value and a particular ‘b’ value. In this disclosure, the characteristic ‘a’ value at L=50 is referred to as a₅₀ and the characteristic ‘b’ value at L=50 is referred to as b₅₀. Thus, the characteristic (L=50) pixel 702 can be expressed as {a₅₀,b₅₀}. It is noted that the characteristic pixel 702 could be determined by averaging the {a,b} values of a plurality of pixels (such as the pixels 520 or perhaps the pixels 520-524, as examples). Another way of determining the characteristic pixel 702 could be to randomly select any one of the pixels 520 to represent the group. And certainly other approaches could be used.

FIG. 8 depicts an example idealization of the example chromatically low-dimensional background video data of FIG. 5 that incorporates the example idealization of FIG. 7, in accordance with some embodiments. In particular, FIG. 8 depicts a graph 800 that is quite similar in a number of ways to the graph 500 of FIG. 5. But instead of showing all of the background pixels 520-524, the graph 800 shows only the characteristic pixel that has been determined for each of a plurality of ‘L’ values that are present in the converted background pixels. This of course includes the characteristic pixel 702 that, as described above, corresponds to L=50. As can be seen by comparison of FIGS. 5 and 8, the column 526 of pixels in the graph 500 (which encompasses all but the outliers) has been idealized into a string (or single-pixel-wide column) of pixels by way of the idealization process described above. This information can then be populated into an L-to-{a,b} lookup table.

FIG. 9 depicts an example L-to-{a,b} look-up table that corresponds to the example idealization of FIG. 8, in accordance with some embodiments. In particular, FIG. 9 depicts an example L-to-{a,b} look-up table 900 that includes columns for each of the possible values of L (0, 1, 2 . . . 100) and shows some example rows at L=0, L=1, L=2, L=49, L=50, L=51, L=99, and L=100. Consistent with the above description, the row at L=50 corresponds to the above-described characteristic point 702 that is an idealization in the a-b plane of the background pixel set at L=50. In each of the rows, the a_(L) and b_(L) notation is used for each L in the table 900, and also some example values for the various characteristic ‘a’ values and characteristic ‘b’ values are included as well.

It should be noted that, while it is certainly possible that a given pixel set would have every possible value of ‘L’ represented, it is also certainly possible that there could be a number of actual implementation examples in which there are one or more empty ‘L’ rows (i.e., values of ‘L’ for which no pixels (or perhaps too few pixels) exist in the pixel set and thus for which no characteristic ‘a’ values and characteristic ‘b’ values could be determined). In some embodiments, an extrapolation process is used to fill in the entire table in case characteristic {a,b} values are needed for missing ‘L’ values. In other embodiments, extrapolation takes place on an as-needed basis for missing ‘L’ values. Such extrapolation could involve simply copying the {a,b} data from a nearest ‘L’ entry, or perhaps averaging the {a,b} values from some number of proximate ‘L’ entries that have valid {a,b) data, etc. And certainly other example approaches could be listed as well.

In at least one embodiment, as an additional sub-step in carrying out the chromatic-replacement technique, the computing device 200 converts all or substantially all of the pixels of the foreground video data from the {R,G,B} color space to the {L,a,b} color space. The computing device 200 may do this before or after the generation of the L-to-{a,b} look-up table 900, which may or may not have been done in the above-described manner.

In at least one embodiment, as a further sub-step in carrying out the chromatic-replacement technique, the computing system 200 transforms the converted foreground pixels at least in part by (a) using the respective L values of the respective converted foreground pixels to select respective replacement {a,b} values for the respective converted foreground pixels based on the L-to-{a,b} lookup table 900 and (b) replacing the respective {a,b} values of the respective converted foreground pixels with the corresponding respective selected replacement {a,b} values. In at least one embodiment, as an additional sub-step in carrying out the chromatic-replacement technique, the computing device 200 converts the transformed foreground pixels from {L,a,b} back to {R,G,B}. An example of carrying out these last two sub-steps is described below in connection with FIGS. 10-17.

FIG. 10 depicts an example table representation of example foreground video data in the {R,G,B} color space, in accordance with some embodiments. In particular, FIG. 10 depicts a foreground-{R,G,B} table 1000 having four columns: a foreground-pixel index number, an ‘R’ value, a ‘G’ value, and a ‘B’ value. The foreground-{R,G,B} table 1000 is also depicted as having a row for each of 307,200 different foreground pixels, corresponding as an example to the total number of pixels in a 640×480 image. Some example ‘R,’ ‘G,’ and ‘B’ values are shown in the foreground-{R,G,B} table 1000. For reasons that will become clearer upon reading the description of the ensuing figures, the reader's attention is called to row 1002 (foreground-pixel FG-2), row 1004 (FG-156000), and row 1006 (FG-307199). Pixel FG-2 has {R,G,B} values of {181,95,66}, corresponding to a light brown. Pixel FG-156000 has {R,G,B} values of {230,24,102}, corresponding to a pinkish red. And pixel FG-307199 has {R,G,B} values of {153,110,70}, corresponding to more of a milk-chocolate brown.

FIG. 11 depicts an example table representation of the example foreground video data of FIG. 10 after having been converted to the {L,a,b} color space, in accordance with some embodiments. In particular, FIG. 11 depicts a foreground-{L,a,b} table 1100 showing the same foreground pixels but after having been converted to {L,a,b}. The table 1100 is quite similar to the table 1000, other than that the pixels are of course expressed in the table 1100 in the {L,a,b} color space instead of in the {R,G,B} color space as is the case with table 1000. The reader will note that the same three pixels (FG-2, FG-156000, and FG-307199) that were referenced above are also called out at rows 1102, 1104, and 1106, respectively. The reader will further note that, while those three foreground pixels have three different pairs of {a,b} values, all three of those pixels have their respective ‘L’ value equal to 50.

FIG. 12 depicts an example graphical representation of the example converted foreground video data of FIG. 11 in the {L,a,b} color space, in accordance with some embodiments. In particular, FIG. 12 depicts a graph 1200 that shows a relatively scattered set of foreground pixels, which are meant to correspond to the pixels of FIGS. 10 and 11 (although of course expressed in the {L,a,b} color space in FIG. 12 as they are in FIG. 11). The graph 1200 includes an ‘L’ axis 1202, an ‘a’ axis 1204, and a ‘b’ axis 1206 that all intersect at an origin point 1208 that corresponds to the point ({L,a,b}|{0,0,0}). Each foreground pixel is represented in the graph 1200 by an empty triangle. Moreover, the relatively high breadth (i.e., variance) of the foreground pixels collectively is shown using a brace 1210.

FIG. 13 depicts an example graphical representation that shows both the example chromatically low-dimensional background video data of FIG. 5 and the example converted foreground video data of FIG. 12, both in the {L,a,b} color space, in accordance with some embodiments. In particular, FIG. 13 depicts a graph 1300 that is essentially the graphs 500 and 1200 overlaid on one another, albeit without the outlier pixels 522-524 from the graph 500. As can be seen by simple inspection of the graph 1300 of FIG. 13, it is clear that the degree of variety and scattering of the foreground pixels (as represented graphically by the brace 1200) significantly exceeds that of the background pixels (as represented graphically by the much narrower brace 526).

To wit, the graph 1300 is a depiction of the fact that, in this example, the foreground pixels as a group have significantly higher color-distribution dimensionality than do the background pixels as a group. Because the {L,a,b} color space (as does the {X,Y,Z} color space) is defined such that luminance is in a single dimension and color (or chromaticity) is in the other two dimensions, this color space provides a useful visualization tool of the color variance of a given set of pixels at various different luminance levels and also the relative color variance of two different sets of pixels.

As described above, the computing system 200 transforms the converted foreground pixels at least in part by (a) using the respective L values of the respective converted foreground pixels to select respective replacement {a,b} values for the respective converted foreground pixels based on the L-to-{a,b} lookup table 900 and (b) replacing the respective {a,b} values of the respective converted foreground pixels with the corresponding respective selected replacement {a,b} values. An example result of this sub-step of the chromatic-replacement technique is shown in FIG. 14.

FIG. 14 depicts an example table representation of the example converted foreground video data of FIGS. 11-12 after having been transformed in the {L,a,b} color space using a chromatic-replacement technique, in accordance with some embodiments. In particular, FIG. 14 depicts an example transformed-foreground-{L,a,b} table 1400 that is quite similar in layout to the foreground-{L,a,b} table 1100 of FIG. 11. What is different about the content, however, is that the actual foreground-pixel {a,b} values that are present in the foreground-{L,a,b} table 1100 of FIG. 11 have been replaced in the transformed-foreground-{L,a,b} table 1400 with {a,b} values selected by the computing device 200 from the L-to-{a,b} lookup table 900 based on the respective ‘L’ values of those foreground pixels.

As described above, in at least one embodiment, in cases where the respective ‘L’ values of the foreground pixels are present in the L-to-{a,b} lookup table 900, the computing device 200 simply replaces the corresponding {a,b} values in the table 1100 with the {a,b} values from that ‘L’ entry in the L-to-{a,b} lookup table 900; and in cases where the respective ‘L’ values of the foreground pixels are not present in the L-to-{a,b} lookup table 900, the computing device 200 replaces the corresponding {a,b} values in the table 1100 with {a,b} values derived by interpolation, perhaps in one of the manners described above, from one or more ‘L’ entries that are present in the L-to-{a,b} lookup table 900.

With respect to the foreground pixels FG-2, FG-156000, and FG-307199, it can be seen in the transformed-foreground-{L,a,b} table 1400 that, while those three pixels still have L=50, each of them now has a=48 and b=32, which are the a₅₀ and b₅₀ values, respectively, from the L-to-{a,b} lookup table 900. Based on the discussion above, it will be evident to one of skill in the art that, while those three pixels previously had three different colors, they have now been transformed to all having the same color due to having the same brightness value.

FIG. 15 depicts an example graphical representation of the transformed foreground video data of FIG. 14 in the {L,a,b} color space, in accordance with some embodiments. In particular, FIG. 15 depicts a graph 1500 that plots the transformed foreground pixels that are listed in tabular form in the transformed-foreground-{L,a,b} table 1400 of FIG. 14. The graph 1500 includes an ‘L’ axis 1502, an ‘a’ axis 1504, and a ‘b’ axis 1506 that all intersect at an origin point 1508 that corresponds to the point ({L,a,b}|{0,0,0}). The plot of foreground pixels in the graph 1500 appears quite similar to the idealization of the background pixels that is shown in the graph 800 of FIG. 8. Certainly there could be multiple pixels in any of the plotted locations in the graph 1500, and in that way the graph 1500 could be viewed as a plot of only the unique pixels in the transformed foreground pixels of FIG. 14. The narrow color-distribution dimensionality of the transformed foreground pixels is shown visually by the relatively narrow brace 1510.

FIG. 16 depicts an example graphical representation that shows both the example chromatically low-dimensional background video data of FIG. 5 and the example transformed foreground video data of FIG. 15, both in the {L,a,b} color space, in accordance with some embodiments. The graph 1600 of FIG. 16 is quite similar to the graph 1500 of FIG. 15, other than that the pixel column and corresponding brace 526 from FIG. 5 have been added. It is apparent from inspection of the graph 1600 that the color-distribution dimensionality of the transformed foreground pixels (as shown be the narrower brace 1510) is less than that of the original background pixels (minus the outliers) (as shown by the wider brace 526). Compared to the pre-foreground-transformation situation that is depicted in the graph 1300 of FIG. 13, the post-foreground-transformation situation that is depicted in the graph 1600 of FIG. 16 illustrates that the transformed foreground pixels are now well within the color range of the original background pixels.

FIG. 17 depicts an example table representation of the example transformed foreground video data of FIGS. 14-15 after having been converted to the {R,G,B} color space, in accordance with some embodiments. As can be seen in FIG. 17, the table 1700 has the same content as the table 1400 of FIG. 14, albeit with the {L,a,b} expressions of the foreground pixels from the table 1400 having been replaced by the {R,G,B} expressions of the foreground pixels in the table 1700. Consistent with the above description of the transformation of like-luminance foreground pixels to having the same color as one another, it can be seen that the rows 1702, 1704, and 1706 show respectively that the pixels FG-2, FG-156000, and FG-307199 each now have the {R,G,B} values of {201,79,67}, which corresponds to a dark orange.

Thus, the previous variety of light brown, pinkish red, and milk-chocolate brown among those three example pixels has been replaced by three dark-orange pixels. This would correspond to an example where the original background pixels were largely concentrated in the orange/red/brown area of the visible-light spectrum. And a foreground video that would have previously clashed with that background video (due at least to the pinkish red) has been transformed to a foreground video that appealingly sits within the relatively concentrated color range of the original background video.

Returning to FIG. 1, at step 112, the computing device 200 generates combined video data at least in part by combining the background video data with the adjusted foreground video data. This step may be performed in several different ways. In at least one embodiment, the computing device 200 combines the adjusted foreground video data with the background video data using what is known is an alpha mask, which is essentially a mapping of all of the pixel locations that will be in the combined video, where in that mapping, a ‘1’ value indicates that the corresponding pixel location should be filled with the corresponding pixel from the foreground video and a ‘0’ value indicates that the corresponding pixel location should be filled with the corresponding pixel from the background video. And certainly other techniques could be used, as known to those having skill in the art.

In at least one embodiment, generating the combined video at least in part by combining the adjusted foreground video data with the background video data includes performing a smoothing operation to a boundary between the adjusted foreground video data and the background video data. In an embodiment, the smoothing operation includes a Poisson image-blending technique. And certainly other examples could be listed.

In at least one embodiment, the method 100 also includes (i) obtaining second foreground video data and (ii) adjusting the second foreground video data using the selected chromatic-adjustment technique, and generating the combined video data includes combining the background video data with both the adjusted foreground video data and the adjusted second foreground video data. And clearly this is extendible to any number of foreground videos (e.g., personas of respective participants in a given collaborative online communication session) being obtained, chromatically adjusted based on the background video, and combined with the background video.

At step 114, the computing device 200 outputs the combined video data for display. This step may be performed in several different ways. In at least one embodiment, the computing device 200 outputs the combined video data for display via the display 220 and/or one or more other displays. In at least one embodiment, the computing device 200 outputs the combined video data via a network connection for display on one or more other devices. And certainly other examples could be listed.

Moreover, it is noted that, although the above examples and embodiments are described in the context of adjusting one or more foreground videos based on the color-distribution dimensionality of a single background video, this is not required of all embodiments. Indeed, in some embodiments, the designations of “foreground” and “background” could be reversed or not present at all (i.e., it could simply be the adjustment of a first video based on a color-distribution dimensionality of a second video). Moreover, it also need not be the case that one or more videos are chromatically adjusted based on another video and then combined with that other video; in some cases, one or more videos that are to be combined could each be chromatically adjusted based on a common reference point (e.g., a given white point, grey point, or the like). Indeed, in some embodiments, a “mood” or “style” or other setting could be available to chromatically adjust one or more videos (one or more “foreground” videos, a “background” video, and/or one or more other videos) prior to combination using chromatic profiles such as sepia, high brightness, pastels, earth tones, and/or one or more others deemed suitable by those in the art for a given implementation. 

What is claimed is:
 1. A method comprising: obtaining foreground video data; obtaining background video data; determining a color-distribution dimensionality of the background video data to be either high-dimensional chromatic or low-dimensional chromatic; selecting a chromatic-adjustment technique from a set of chromatic-adjustment techniques based on the determined color-distribution dimensionality of the background video data; adjusting the foreground video data using the selected chromatic-adjustment technique; generating combined video data at least in part by combining the background video data with the adjusted foreground video data; and outputting the combined video data for display.
 2. The method of claim 1, wherein determining the color-distribution dimensionality of the background video data to be either high-dimensional chromatic or low-dimensional chromatic comprises: converting pixels of the background video data from an {R,G,B} color space to an {L,a,b} color space; calculating an {a,b} variance of the converted background pixels; comparing the calculated {a,b} variance to an {a,b}-variance threshold; determining the color-distribution dimensionality of the background video data to be high-dimensional chromatic if the calculated {a,b} variance exceeds the {a,b}-variance threshold; and determining the color-distribution dimensionality of the background video data to be low-dimensional chromatic if the calculated {a,b} variance does not exceed the {a,b}-variance threshold.
 3. The method of claim 2, wherein: calculating the {a,b} variance of the converted background pixels comprises determining how many luminance levels in the converted background pixels have more than a luminance-level-specific degree of {a,b} variance; and the {a,b}-variance threshold is a threshold number of luminance levels.
 4. The method of claim 3, wherein the threshold number of luminance levels is zero.
 5. The method of claim 3, wherein the threshold number of luminance levels is greater than zero.
 6. The method of claim 2, wherein calculating the {a,b} variance of the converted background pixels comprises: determining a respective luminance-level-specific {a,b} variance for each of a plurality of luminance levels that are represented in the converted background pixels; and calculating the {a,b} variance of the converted background pixels to be a sum of the determined luminance-level-specific {a,b} variances.
 7. The method of claim 2, wherein calculating the {a,b} variance of the converted background pixels comprises: determining a respective luminance-level-specific {a,b} variance for each luminance level represented in the converted background pixels; and calculating the {a,b} variance of the converted background pixels to be a sum of the determined luminance-level-specific {a,b} variances.
 8. The method of claim 1, wherein determining the color-distribution dimensionality of the background video data to be either high-dimensional chromatic or low-dimensional chromatic comprises: determining the color-distribution dimensionality of the background video data to be low-dimensional chromatic if a background-color distribution of the background video data in an {L,a,b} color space is supported by a relationship defined by: {(L,a,b)|a=f _(a)(L),b=f _(b)(L)}, where f_(a) and f_(b) are functions; and otherwise determining the color-distribution dimensionality of the background video data to be high-dimensional chromatic.
 9. The method of claim 1, wherein: the set of chromatic-adjustment techniques includes a white-balancing technique and a chromatic-replacement technique; and selecting a chromatic-adjustment technique based on the determined color-distribution dimensionality comprises: selecting the white-balancing technique when the color-distribution dimensionality of the background video data is determined to be high-dimensional chromatic; and selecting the chromatic-replacement technique when the color-distribution dimensionality of the background video data is determined to be low-dimensional chromatic.
 10. The method of claim 9, wherein adjusting the foreground video data using the white-balancing technique comprises: determining a foreground average of pixels of the foreground video data in an {R,G,B} color space; determining a background average of pixels of the background video data in the {R,G,B} color space; converting the foreground average and the background average from the {R,G,B} color space to a second color space; determining a transform matrix in the second color space from the converted foreground average to the converted background average; converting the pixels of the foreground video data from the {R,G,B} color space to the second color space; transforming the converted foreground pixels in the second color space using the determined transform matrix; and converting the transformed foreground pixels from the second color space to the {R,G,B} color space.
 11. The method of claim 10, wherein the determined transform matrix comprises dimension-wise ratios in the second color space of the converted background average to the converted foreground average.
 12. The method of claim 10, wherein the second color space is an {L,a,b} color space.
 13. The method of claim 10, wherein the second color space is an {X,Y,Z} color space.
 14. The method of claim 13, wherein converting the foreground pixels from the {R,G,B} color space to the second color space comprises converting the foreground pixels from the {R,G,B} color space to an {L,a,b} color space and then from the {L,a,b} color space to the {X,Y,Z} color space.
 15. The method of claim 9, further comprising converting pixels of the background video data from an {R,G,B} color space to an {L,a,b} color space, wherein adjusting the foreground video data using the chromatic-replacement technique comprises: generating an L-to-{a,b} lookup table based on the converted background pixels; converting pixels of the foreground video data from the {R,G,B} color space to the {L,a,b} color space; transforming the converted foreground pixels at least in part by: using the respective L values of the respective converted foreground pixels to select respective replacement {a,b} values for the respective converted foreground pixels based on the L-to-{a,b} lookup table; and replacing the respective {a,b} values of the respective converted foreground pixels with the corresponding respective selected replacement {a,b} values; and converting the transformed foreground pixels from the {L,a,b} color space to the {R,G,B} color space.
 16. The method of claim 15, wherein using the respective L values of the respective converted foreground pixels to select the respective replacement {a,b} values for the respective converted foreground pixels based on the L-to-{a,b} lookup table comprises: retrieving the respective replacement {a,b} values from the L-to-{a,b} lookup table in cases where the respective L value of the respective converted foreground pixel is listed in the L-to-{a,b} lookup table.
 17. The method of claim 16, wherein using the respective L values of the respective converted foreground pixels to select the respective replacement {a,b} values for the respective converted foreground pixels based on the L-to-{a,b} lookup table further comprises: using interpolated {a,b} values based on one or more entries in the L-to-{a,b} lookup table as the respective replacement {a,b} values in cases where the respective L value of the respective converted foreground pixel is not listed in the L-to-{a,b} lookup table.
 18. The method of claim 17, wherein the interpolated {a,b} values are copied from a nearest L value that is listed in the L-to-{a,b} lookup table.
 19. The method of claim 17, wherein the interpolated {a,b} values are average {a,b} values of two or more proximate entries in the L-to-{a,b} lookup table.
 20. The method of claim 1, further comprising: obtaining second foreground video data; and adjusting the second foreground video data using the selected chromatic-adjustment technique, wherein generating the combined video data comprises combining the background video data with both the adjusted foreground video data and the adjusted second foreground video data.
 21. A system comprising: a communication interface; a processor; and a non-transitory computer-readable medium storing instructions executable by the processor for causing the system to perform functions including: obtaining foreground video data; obtaining background video data; determining a color-distribution dimensionality of the background video data to be either high-dimensional chromatic or low-dimensional chromatic; selecting a chromatic-adjustment technique from a set of chromatic-adjustment techniques based on the determined color-distribution dimensionality of the background video data; adjusting the foreground video data using the selected chromatic-adjustment technique; generating combined video data at least in part by combining the background video data with the adjusted foreground video data; and outputting the combined video data for display. 